/**
 * Handle hide window.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"90048B4F-9AAC-4FE7-B7C7-60B0E539F6A5"}
 */
function salir(event) 
{
	databaseManager.revertEditedRecords();
	databaseManager.setAutoSave(true)
	var $win = application.getWindow('ctacte_det')
	$win.hide()
	$win.destroy()
	return true
	
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"36C290BF-3795-4C05-A3D5-947EB0305FC1"}
 */
function modificar(event) 
{
	var estado=databaseManager.saveData()
	if (estado==true)
	{
		globals.DIALOGS.showWarningDialog('Aviso','Modificación realizada','OK')
	}
	else
	{
		databaseManager.revertEditedRecords()
		globals.DIALOGS.showWarningDialog('Aviso','No se realizó modificación','OK')
	}
	databaseManager.setAutoSave(true)
	var $win = application.getWindow('ctacte_det')
	$win.hide()
	$win.destroy()
}
